home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
butt01.zip
/
BUTTON.GEN
< prev
next >
Wrap
Text File
|
1993-01-04
|
1KB
|
48 lines
<<* B_Menu.GEN *>>
<<title "Button Menu Generator">>
<<string fmain,fproc>>
<<integer indent,errnum,lasthue,forecolor,backcolor>>
<<* Variables used in PickMain *>>
<<string prgname,fpath,fname,fext,fieldcolor>>
<<integer BaseLine,ColOffset,WindowBotABS>>
<<logical MultiPick,MultiLine,ColorIsOk >>
<<#include 'UTIL.INC'#>> <<*Routines used by PickPROC*>>
<<#include 'ButtMAIN.INC'#>> <<*Main program file*>>
<<#pragma
function GetPrgName( prompt : string ) : string
string fspec,fpath,fname,fext
begin
input prompt to fspec
if fspec
filespec( fspec,fpath,fname,fext )
fspec := fpath + fname + '.PRG' <<*Force a '.PRG' extension*>>
endif
RETURN fspec
end <<*GetPrgName*>>
begin <<*MAIN*>>
if table
fmain := GetPrgName( "Enter FILENAME of program to GENERATE" )
if fmain
errnum := rewrite( fmain )
if errnum = 0
ProgramBody( fmain )
endif
wait
endif
else
wait "No FoxView Table is available "
endif
end <<*MAIN*>>
#>>
<<* EOF: Pick.GEN *>>